\hypertarget{class_q_c_p_item_text}{}\section{Q\+C\+P\+Item\+Text Class Reference}
\label{class_q_c_p_item_text}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}


A text label.  


Inheritance diagram for Q\+C\+P\+Item\+Text\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=4.000000cm]{class_q_c_p_item_text}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}{Q\+C\+P\+Item\+Text}} (\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$parent\+Plot)
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a071ec7567ae4deae2262a5b861df7d54}\label{class_q_c_p_item_text_a071ec7567ae4deae2262a5b861df7d54}} 
Q\+Color {\bfseries color} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a6e13d5497ea634fe1ee9f4aac94f664c}\label{class_q_c_p_item_text_a6e13d5497ea634fe1ee9f4aac94f664c}} 
Q\+Color {\bfseries selected\+Color} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a7039d313069547682f28688448333979}\label{class_q_c_p_item_text_a7039d313069547682f28688448333979}} 
Q\+Pen {\bfseries pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a852a79afa0e88e29e11474d323440126}\label{class_q_c_p_item_text_a852a79afa0e88e29e11474d323440126}} 
Q\+Pen {\bfseries selected\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a2600b9b419f17e2e2381f5ed8267da62}\label{class_q_c_p_item_text_a2600b9b419f17e2e2381f5ed8267da62}} 
Q\+Brush {\bfseries brush} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a300770cc32acf3e92763651803482563}\label{class_q_c_p_item_text_a300770cc32acf3e92763651803482563}} 
Q\+Brush {\bfseries selected\+Brush} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a44a564431890ffdfe0f978f8732cfb81}\label{class_q_c_p_item_text_a44a564431890ffdfe0f978f8732cfb81}} 
Q\+Font {\bfseries font} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a74c947c6193e3b47884fac84fdb29922}\label{class_q_c_p_item_text_a74c947c6193e3b47884fac84fdb29922}} 
Q\+Font {\bfseries selected\+Font} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_ad71c9e83ee3556d9d617eca854e8eb18}\label{class_q_c_p_item_text_ad71c9e83ee3556d9d617eca854e8eb18}} 
Q\+String {\bfseries text} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a0d946dca3008d353afd04b4337739199}\label{class_q_c_p_item_text_a0d946dca3008d353afd04b4337739199}} 
Qt\+::\+Alignment {\bfseries position\+Alignment} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a9af3198d46551e1cc7703f02c95ddfe5}\label{class_q_c_p_item_text_a9af3198d46551e1cc7703f02c95ddfe5}} 
Qt\+::\+Alignment {\bfseries text\+Alignment} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a035962b4ed23ff0a89e6a8b46fa18bf1}\label{class_q_c_p_item_text_a035962b4ed23ff0a89e6a8b46fa18bf1}} 
double {\bfseries rotation} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a5a598618350b40446d031fa9dc15fba7}\label{class_q_c_p_item_text_a5a598618350b40446d031fa9dc15fba7}} 
Q\+Margins {\bfseries padding} () const
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color}} (const Q\+Color \&color)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}{set\+Selected\+Color}} (const Q\+Color \&color)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}{set\+Selected\+Pen}} (const Q\+Pen \&pen)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}} (const Q\+Brush \&brush)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}{set\+Selected\+Brush}} (const Q\+Brush \&brush)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font}} (const Q\+Font \&font)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}{set\+Selected\+Font}} (const Q\+Font \&font)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}{set\+Text}} (const Q\+String \&text)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}{set\+Position\+Alignment}} (Qt\+::\+Alignment alignment)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}} (Qt\+::\+Alignment alignment)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}{set\+Rotation}} (double degrees)
\item 
void \mbox{\hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding}} (const Q\+Margins \&padding)
\item 
virtual double \mbox{\hyperlink{class_q_c_p_item_text_aca74494fd5e769f331a6eb3e29f32916}{select\+Test}} (const Q\+PointF \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a0d228a00e819022b5690c65762721129}\label{class_q_c_p_item_text_a0d228a00e819022b5690c65762721129}} 
\mbox{\hyperlink{class_q_c_p_item_position}{Q\+C\+P\+Item\+Position}} $\ast$const {\bfseries position}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a6354d8762182a3502103fabe5fbb8512}\label{class_q_c_p_item_text_a6354d8762182a3502103fabe5fbb8512}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries top\+Left}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a5c87ee162cbbe3d166b97826c8849304}\label{class_q_c_p_item_text_a5c87ee162cbbe3d166b97826c8849304}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries top}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_ad18ac45cb4cc135de1eb78f2e86b6504}\label{class_q_c_p_item_text_ad18ac45cb4cc135de1eb78f2e86b6504}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries top\+Right}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_aef159622ce6502412e782a21ba6d84f2}\label{class_q_c_p_item_text_aef159622ce6502412e782a21ba6d84f2}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries right}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a8ad47045c29af43b0312f7d93bb74374}\label{class_q_c_p_item_text_a8ad47045c29af43b0312f7d93bb74374}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries bottom\+Right}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a94aeec080f877d3d1d0c3d8ffc10e9e6}\label{class_q_c_p_item_text_a94aeec080f877d3d1d0c3d8ffc10e9e6}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries bottom}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a6a1c872ad3789ecafcaeac2066e218a0}\label{class_q_c_p_item_text_a6a1c872ad3789ecafcaeac2066e218a0}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries bottom\+Left}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_ab8c6c6e1df36256986fab1463c0a1d38}\label{class_q_c_p_item_text_ab8c6c6e1df36256986fab1463c0a1d38}} 
\mbox{\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor}} $\ast$const {\bfseries left}
\end{DoxyCompactItemize}
\subsection*{Protected Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a14a84e58f72519c8ae1d7a4a1dd23f21}\label{class_q_c_p_item_text_a14a84e58f72519c8ae1d7a4a1dd23f21}} 
enum {\bfseries Anchor\+Index} \{ \newline
{\bfseries ai\+Top\+Left}, 
{\bfseries ai\+Top}, 
{\bfseries ai\+Top\+Right}, 
{\bfseries ai\+Right}, 
\newline
{\bfseries ai\+Bottom\+Right}, 
{\bfseries ai\+Bottom}, 
{\bfseries ai\+Bottom\+Left}, 
{\bfseries ai\+Left}
 \}
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a8793adb271ab79b4cf391dc55e9987f1}\label{class_q_c_p_item_text_a8793adb271ab79b4cf391dc55e9987f1}} 
virtual void {\bfseries draw} (\mbox{\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter}} $\ast$painter)
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a3f999a0a7664421373601206bc35cc7c}\label{class_q_c_p_item_text_a3f999a0a7664421373601206bc35cc7c}} 
virtual Q\+PointF {\bfseries anchor\+Pixel\+Point} (int anchor\+Id) const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a4c76ad7e33c50aff0a60b8f38fe6060e}\label{class_q_c_p_item_text_a4c76ad7e33c50aff0a60b8f38fe6060e}} 
Q\+PointF {\bfseries get\+Text\+Draw\+Point} (const Q\+PointF \&pos, const Q\+RectF \&rect, Qt\+::\+Alignment position\+Alignment) const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_af30ac2a0b84afa86a1dec22ab48dd07d}\label{class_q_c_p_item_text_af30ac2a0b84afa86a1dec22ab48dd07d}} 
Q\+Font {\bfseries main\+Font} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_abe3f10805baf62797cb91fd4a4464fcc}\label{class_q_c_p_item_text_abe3f10805baf62797cb91fd4a4464fcc}} 
Q\+Color {\bfseries main\+Color} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a2f67fcbb7ac10ea9a94c4ecc3b0f4dfc}\label{class_q_c_p_item_text_a2f67fcbb7ac10ea9a94c4ecc3b0f4dfc}} 
Q\+Pen {\bfseries main\+Pen} () const
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_acddddd3ce88cfc87ab57b1ec4b25acb9}\label{class_q_c_p_item_text_acddddd3ce88cfc87ab57b1ec4b25acb9}} 
Q\+Brush {\bfseries main\+Brush} () const
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a8407f284ad867f627878cc26ef433d08}\label{class_q_c_p_item_text_a8407f284ad867f627878cc26ef433d08}} 
Q\+Color {\bfseries m\+Color}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a7eb64e42f5f7998a97d8907ad25933c1}\label{class_q_c_p_item_text_a7eb64e42f5f7998a97d8907ad25933c1}} 
Q\+Color {\bfseries m\+Selected\+Color}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_aa02388705dbbff1bf7b8aa872b5f579c}\label{class_q_c_p_item_text_aa02388705dbbff1bf7b8aa872b5f579c}} 
Q\+Pen {\bfseries m\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a8eaec649606d6ead2d8d4dcb5691777c}\label{class_q_c_p_item_text_a8eaec649606d6ead2d8d4dcb5691777c}} 
Q\+Pen {\bfseries m\+Selected\+Pen}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a2535911875faa459b8337f2efccb5cb8}\label{class_q_c_p_item_text_a2535911875faa459b8337f2efccb5cb8}} 
Q\+Brush {\bfseries m\+Brush}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a28ccd097b42a216d81db9c6869f54a59}\label{class_q_c_p_item_text_a28ccd097b42a216d81db9c6869f54a59}} 
Q\+Brush {\bfseries m\+Selected\+Brush}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a1dc87fe2a824820d549ffd7e644eef8d}\label{class_q_c_p_item_text_a1dc87fe2a824820d549ffd7e644eef8d}} 
Q\+Font {\bfseries m\+Font}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a6702f141fae590b2f4f1ec02fe9f8bd5}\label{class_q_c_p_item_text_a6702f141fae590b2f4f1ec02fe9f8bd5}} 
Q\+Font {\bfseries m\+Selected\+Font}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a2dec3e08c11f51639629374ecec3bd62}\label{class_q_c_p_item_text_a2dec3e08c11f51639629374ecec3bd62}} 
Q\+String {\bfseries m\+Text}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_a6c27f7dc1a962a04b32430cf99f04654}\label{class_q_c_p_item_text_a6c27f7dc1a962a04b32430cf99f04654}} 
Qt\+::\+Alignment {\bfseries m\+Position\+Alignment}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_acdb2e50c38e83da00f083771efbd213f}\label{class_q_c_p_item_text_acdb2e50c38e83da00f083771efbd213f}} 
Qt\+::\+Alignment {\bfseries m\+Text\+Alignment}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_ac37df0061552225d2277e1ee3b48f2cb}\label{class_q_c_p_item_text_ac37df0061552225d2277e1ee3b48f2cb}} 
double {\bfseries m\+Rotation}
\item 
\mbox{\Hypertarget{class_q_c_p_item_text_ae7b3ef0ce6046efd4b346d28f2e1fb67}\label{class_q_c_p_item_text_ae7b3ef0ce6046efd4b346d28f2e1fb67}} 
Q\+Margins {\bfseries m\+Padding}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
A text label. 

 Its position is defined by the member {\itshape position} and the setting of \mbox{\hyperlink{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}{set\+Position\+Alignment}}. The latter controls which part of the text rect shall be aligned with {\itshape position}.

The text alignment itself (i.\+e. left, center, right) can be controlled with \mbox{\hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}}.

The text may be rotated around the {\itshape position} point with \mbox{\hyperlink{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}{set\+Rotation}}. 

\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}\label{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{Q\+C\+P\+Item\+Text()}{QCPItemText()}}
{\footnotesize\ttfamily Q\+C\+P\+Item\+Text\+::\+Q\+C\+P\+Item\+Text (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} $\ast$}]{parent\+Plot }\end{DoxyParamCaption})}

Creates a text item and sets default values.

The constructed item can be added to the plot with \mbox{\hyperlink{class_q_custom_plot_aa500620379262321685cb7a7674cbd2a}{Q\+Custom\+Plot\+::add\+Item}}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_c_p_item_text_aca74494fd5e769f331a6eb3e29f32916}\label{class_q_c_p_item_text_aca74494fd5e769f331a6eb3e29f32916}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!select\+Test@{select\+Test}}
\index{select\+Test@{select\+Test}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{select\+Test()}{selectTest()}}
{\footnotesize\ttfamily double Q\+C\+P\+Item\+Text\+::select\+Test (\begin{DoxyParamCaption}\item[{const Q\+PointF \&}]{pos,  }\item[{bool}]{only\+Selectable,  }\item[{Q\+Variant $\ast$}]{details = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

This function is used to decide whether a click hits a layerable object or not.

{\itshape pos} is a point in pixel coordinates on the \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too.

If the object is represented not by single lines but by an area like a \mbox{\hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}} or the bars of a \mbox{\hyperlink{class_q_c_p_bars}{Q\+C\+P\+Bars}} plottable, a click inside the area should also be considered a hit. In these cases this function thus returns a constant value greater zero but still below the parent plot\textquotesingle{}s selection tolerance. (typically the selection\+Tolerance multiplied by 0.\+99).

Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance).

The actual setting of the selection state is not done by this function. This is handled by the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods.

{\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \mbox{\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot}} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \mbox{\hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}}). This way, a possibly complex calculation to decide which part was clicked is only done once in \mbox{\hyperlink{class_q_c_p_item_text_aca74494fd5e769f331a6eb3e29f32916}{select\+Test}}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation.

You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.

\begin{DoxySeeAlso}{See also}
select\+Event, deselect\+Event, \mbox{\hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}} 
\end{DoxySeeAlso}


Implements \mbox{\hyperlink{class_q_c_p_abstract_item_a96d522d10ffc0413b9a366c6f7f0476b}{Q\+C\+P\+Abstract\+Item}}.

\mbox{\Hypertarget{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}\label{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Brush@{set\+Brush}}
\index{set\+Brush@{set\+Brush}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Brush()}{setBrush()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Brush (\begin{DoxyParamCaption}\item[{const Q\+Brush \&}]{brush }\end{DoxyParamCaption})}

Sets the brush that will be used do fill the background of the text. To disable the background, set {\itshape brush} to Qt\+::\+No\+Brush.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}{set\+Selected\+Brush}}, \mbox{\hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}}, \mbox{\hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}\label{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Color@{set\+Color}}
\index{set\+Color@{set\+Color}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Color()}{setColor()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Color (\begin{DoxyParamCaption}\item[{const Q\+Color \&}]{color }\end{DoxyParamCaption})}

Sets the color of the text. \mbox{\Hypertarget{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}\label{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Font@{set\+Font}}
\index{set\+Font@{set\+Font}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Font()}{setFont()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Font (\begin{DoxyParamCaption}\item[{const Q\+Font \&}]{font }\end{DoxyParamCaption})}

Sets the font of the text.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}{set\+Selected\+Font}}, \mbox{\hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}\label{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Padding@{set\+Padding}}
\index{set\+Padding@{set\+Padding}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Padding()}{setPadding()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Padding (\begin{DoxyParamCaption}\item[{const Q\+Margins \&}]{padding }\end{DoxyParamCaption})}

Sets the distance between the border of the text rectangle and the text. The appearance (and visibility) of the text rectangle can be controlled with \mbox{\hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}} and \mbox{\hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}}. \mbox{\Hypertarget{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}\label{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Pen@{set\+Pen}}
\index{set\+Pen@{set\+Pen}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Pen()}{setPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen that will be used do draw a rectangular border around the text. To disable the border, set {\itshape pen} to Qt\+::\+No\+Pen.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}{set\+Selected\+Pen}}, \mbox{\hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}}, \mbox{\hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}\label{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Position\+Alignment@{set\+Position\+Alignment}}
\index{set\+Position\+Alignment@{set\+Position\+Alignment}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Position\+Alignment()}{setPositionAlignment()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Position\+Alignment (\begin{DoxyParamCaption}\item[{Qt\+::\+Alignment}]{alignment }\end{DoxyParamCaption})}

Sets which point of the text rect shall be aligned with {\itshape position}.

Examples\+: \begin{DoxyItemize}
\item If {\itshape alignment} is {\ttfamily Qt\+::\+Align\+H\+Center $\vert$ Qt\+::\+Align\+Top}, the text will be positioned such that the top of the text rect will be horizontally centered on {\itshape position}. \item If {\itshape alignment} is {\ttfamily Qt\+::\+Align\+Left $\vert$ Qt\+::\+Align\+Bottom}, {\itshape position} will indicate the bottom left corner of the text rect.\end{DoxyItemize}
If you want to control the alignment of (multi-\/lined) text within the text rect, use \mbox{\hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}}. \mbox{\Hypertarget{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}\label{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Rotation@{set\+Rotation}}
\index{set\+Rotation@{set\+Rotation}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Rotation()}{setRotation()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Rotation (\begin{DoxyParamCaption}\item[{double}]{degrees }\end{DoxyParamCaption})}

Sets the angle in degrees by which the text (and the text rectangle, if visible) will be rotated around {\itshape position}. \mbox{\Hypertarget{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}\label{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Brush@{set\+Selected\+Brush}}
\index{set\+Selected\+Brush@{set\+Selected\+Brush}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Selected\+Brush()}{setSelectedBrush()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Selected\+Brush (\begin{DoxyParamCaption}\item[{const Q\+Brush \&}]{brush }\end{DoxyParamCaption})}

Sets the brush that will be used do fill the background of the text, when the item is selected. To disable the background, set {\itshape brush} to Qt\+::\+No\+Brush.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}\label{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Color@{set\+Selected\+Color}}
\index{set\+Selected\+Color@{set\+Selected\+Color}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Selected\+Color()}{setSelectedColor()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Selected\+Color (\begin{DoxyParamCaption}\item[{const Q\+Color \&}]{color }\end{DoxyParamCaption})}

Sets the color of the text that will be used when the item is selected. \mbox{\Hypertarget{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}\label{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Font@{set\+Selected\+Font}}
\index{set\+Selected\+Font@{set\+Selected\+Font}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Selected\+Font()}{setSelectedFont()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Selected\+Font (\begin{DoxyParamCaption}\item[{const Q\+Font \&}]{font }\end{DoxyParamCaption})}

Sets the font of the text that will be used when the item is selected.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}\label{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Pen@{set\+Selected\+Pen}}
\index{set\+Selected\+Pen@{set\+Selected\+Pen}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Selected\+Pen()}{setSelectedPen()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Selected\+Pen (\begin{DoxyParamCaption}\item[{const Q\+Pen \&}]{pen }\end{DoxyParamCaption})}

Sets the pen that will be used do draw a rectangular border around the text, when the item is selected. To disable the border, set {\itshape pen} to Qt\+::\+No\+Pen.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}\label{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Text@{set\+Text}}
\index{set\+Text@{set\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Text()}{setText()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Text (\begin{DoxyParamCaption}\item[{const Q\+String \&}]{text }\end{DoxyParamCaption})}

Sets the text that will be displayed. Multi-\/line texts are supported by inserting a line break character, e.\+g. \textquotesingle{}~\newline
\textquotesingle{}.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font}}, \mbox{\hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color}}, \mbox{\hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}\label{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}} 
\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Text\+Alignment@{set\+Text\+Alignment}}
\index{set\+Text\+Alignment@{set\+Text\+Alignment}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
\subsubsection{\texorpdfstring{set\+Text\+Alignment()}{setTextAlignment()}}
{\footnotesize\ttfamily void Q\+C\+P\+Item\+Text\+::set\+Text\+Alignment (\begin{DoxyParamCaption}\item[{Qt\+::\+Alignment}]{alignment }\end{DoxyParamCaption})}

Controls how (multi-\/lined) text is aligned inside the text rect (typically Qt\+::\+Align\+Left, Qt\+::\+Align\+Center or Qt\+::\+Align\+Right). 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8h}{qcustomplot.\+h}}\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/charts/qcustomplot/\mbox{\hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}}\end{DoxyCompactItemize}
